//
//  CYDatePickerView.h
//  CreditAddressBook
//
//  Created by Lee on 15/7/27.
//  Copyright (c) 2015年 Lee. All rights reserved.
//

#import <UIKit/UIKit.h>
@class CYDatePickerView;

typedef void (^SelectedDate)(NSDate *date, NSString *dateStr);

@protocol CYDatePickerViewDelegate <NSObject>

@optional
- (void)datePickerView:(CYDatePickerView *)view date:(NSDate *)date dateFormatter:(NSString *)formatter;

@end

@interface CYDatePickerView : UIView

@property (weak, nonatomic) id<CYDatePickerViewDelegate> delegate;

@property (strong, nonatomic) NSDate *maxDate;
@property (strong, nonatomic) NSDate *minDate;

- (void)selectedDate:(SelectedDate)date;
@end
